module.exports = api => {
  api.render("./template");
  api.extendPackage({
    scripts: {
      "reload-lib": "yarn upgrade @vue-basic-components"
    },
    dependencies: {
      axios: "^0.21.1",
      echarts: "^5.0.2",
      "element-plus": "1.0.2-beta.71",
      lodash: "^4.17.21",
      moment: "^2.29.1",
      "tus-js-client": "^2.2.0",
      "@vue-basic-components":
        "https://gitee.com/wic/vue-basic-components.git"
    },
    devDependencies: {
      "@types/lodash": "^4.14.172"
    },
    vetur: {
      tags: "./node_modules/@vue-basic-components/vetur/tags.json",
      attributes: "./node_modules/@vue-basic-components/vetur/attributes.json"
    }
  });

  api.render({
    "./public/favicon.ico": "./template/favicon.ico",
    "./public/logo.png": "./template/logo.png",
    "./vue.config.js": "./template/vue.config.js",
    "./tsconfig.json": "./template/tsconfig.json",
    "./src/shims-vue.d.ts": "./template/src/shims-vue.d.ts"
  });
};
